let routes = [
    {
        path: "/",
        redirect: "/login",
        component: () => import("../view/login"),
        meta: { isNav: false, },
    },
    {
        path: "/login",
        name: "login",
        component: () => import("../view/login"),
        meta: { isNav: false, },
    },
    {
        path: "/layout",
        name: "layout",
        component: () => import("../view/layout"),
        meta: { isNav: true, },
        children: [
            {
                path: "/layout",
                redirect: "/home",
                component: () => import("../view/home"),
                meta: { isNav: false, },
            },
            {
                path: "/home",
                name: "home",
                component: () => import("../view/home"),
                meta: { title: "首页", isNav: false, },
                children:[],
            },
        ]
    },
]
export default routes
export function navBar() {
    return routes.filter((item => {
        // return if (item.meta.isNav)
    }))
}